﻿using System;

namespace Ioacp.Hanvon
{
    /// <summary>
    /// 汉王人证终端初始化参数
    /// </summary>
    public class HanvonInitEventArgs: EventArgs
    {
        /// <summary>
        /// Tcp 服务端端口
        /// </summary>
        public ushort TcpServerPort { get; set; } = 9910;

        /// <summary>
        /// Udp 服务端端口
        /// </summary>
        public ushort UdpServerPort { get; set; } = 9911;

        /// <summary>
        /// 终端的 IP 地址
        /// </summary>
        public string IpAddress { get; set; }

        /// <summary>
        /// 旧版上位机作为服务端,新版设备作为客户端
        /// </summary>
        public bool IsServer { get; set; }
    }
}